package com.shakespace.artofandroid.chapter02.basic

import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.shakespace.artofandroid.R
import com.shakespace.artofandroid.global.Constants
import com.shakespace.firstlinecode.global.TAG
import com.shakespace.firstlinecode.global.start
import kotlinx.android.synthetic.main.activity_remote01.*

class Remote01Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_remote01)


        Constants.NUMBER += 1

        Log.e(this.TAG, "onCreate: ${Constants.NUMBER}")

        tv_to_remote2.setOnClickListener {
            start(Remote02Activity::class.java)
        }
    }
}
